/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Practica4.util;

/**
 *
 * @author miguel
 */
public class Nodo {
    
    private int valor;
    private Nodo next;
    private Nodo back;

    public Nodo(int valor, Nodo next, Nodo back) {
        this.valor = valor;
        this.next = next;
        this.back = back;
    }
    
    public Nodo(int valor){
        this(valor,null,null);
    }

    public Nodo getBack() {
        return back;
    }

    public void setBack(Nodo back) {
        this.back = back;
    }

    public Nodo getNext() {
        return next;
    }

    public void setNext(Nodo next) {
        this.next = next;
    }

    public int getValor() {
        return valor;
    }

    public void setValor(int valor) {
        this.valor = valor;
    }
    
}
